﻿'Description:流水卡领料、工艺确认类
'Copyright (c) : 通力凯顿（北京）系统集成有限公司
'Writer:Wangjh
'create Date:2017-9-4
'Rewriter:
'Rewrite Date:
Imports BusinessRule.DTO

Public Interface uLMSContainerMaterialIBusiness
    ''' <summary>
    ''' 获取领料、工艺确认等开卡后的批次
    ''' </summary>
    ''' <param name="dto"></param>
    ''' <param name="PageIndex"></param>
    ''' <param name="PageSize"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetMainTableNew(ByVal dto As MaterialParamterDto, ByVal PageIndex As Integer, ByVal PageSize As Integer) As uMESProcessResult


    ''' <summary>
    ''' 查询批次详细领料信息
    ''' add:Wangjh 20180822
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetMaterialContainerNoInfo(ByVal para As Dictionary(Of String, String)) As DataTable

    ''' <summary>
    ''' 获取领料、工艺确认等开卡后的批次
    ''' </summary>
    ''' <param name="dto"></param>
    ''' <param name="PageIndex"></param>
    ''' <param name="PageSize"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetMainMaterialData(ByVal dto As MaterialParamterDto, ByVal PageIndex As Integer, ByVal PageSize As Integer) As uMESProcessResult

    ''' <summary>
    ''' 获取零件明细
    ''' </summary>
    ''' <param name="productID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetProductDetail(ByVal productID As String) As DataTable

    ''' <summary>
    ''' 根据workflowid获取第一工序
    ''' </summary>
    ''' <param name="workflowid"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetFirstWorkflowStep(ByVal workflowid As String) As DataTable

    ''' <summary>
    ''' 根据当前stepID获取前一工序
    ''' </summary>
    ''' <param name="stepID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetPreWorkflowStep(ByVal stepID As String) As DataTable

    ''' <summary>
    ''' 查询子序号的相关领料信息
    ''' </summary>
    ''' <param name="containerID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetChildMaterialInfo(ByVal containerID As String)
    ''' <summary>
    ''' 子工艺确认
    ''' </summary>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function UpdateSubWorkFlowCheckInfo(ByVal ID As String)
    ''' <summary>
    ''' 判断批次子工艺是否校对完
    ''' </summary>
    ''' <param name="ContainerID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function JudgeConfirmSubWorkFlow(ByVal ContainerID As String, ByVal IsSub As Boolean) As Boolean

    ''' <summary>
    ''' 更新批次的工艺信息 create tianFW 2018年1月9日
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function UpdateContainerWorkflowInfo(ByVal para As Dictionary(Of String, Object)) As Boolean

    ''' <summary>
    ''' 根据计划员获取该计划员开卡未校对的流水卡信息 create tianFW 2018年4月17日
    ''' </summary>
    ''' <param name="para"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetContainerInfoNoProofread(ByVal para As Dictionary(Of String, String)) As DataTable

    ''' <summary>
    ''' 查询到料情况  add ZhuNan 20180420
    ''' </summary>
    ''' <param name="paraDic"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetMaterialInfo(ByVal paraDic As Dictionary(Of String, String)) As DataTable
    ''' <summary>
    ''' 查询原工艺号
    ''' </summary>
    ''' <param name="workflowID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetProcess_No(ByVal workflowID As String) As DataTable
    ''' <summary>
    ''' 获取批次需要校对的子工艺，及批次是否需要子工艺校对
    ''' add:Wangjh 20180620
    ''' </summary>
    ''' <param name="containerID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetNeedCheckSubWorkflow(ByVal containerID As String, ByRef subWorkflows As String) As Boolean
    ''' <summary>
    ''' 继承父卡的领料信息
    ''' </summary>
    ''' <param name="faContainername"></param>
    ''' <param name="sonContainerID"></param>
    ''' <remarks></remarks>
    Sub inheritFaContainer(ByVal faContainername As String, ByVal sonContainerID As String)
    ''' <summary>
    ''' 查询父卡
    ''' add:Wangjh 20190103
    ''' </summary>
    ''' <param name="workflowroute"></param>
    ''' <param name="containerNum"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetFaContainer(ByVal workflowroute As String, ByVal containerNum As String, ByVal sonContainerID As String) As DataTable
    ''' <summary>
    ''' 获取批次的物资退回记录
    ''' add:Wangjh 20190327
    ''' </summary>
    ''' <param name="containerID"></param>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function GetWuziReturnContainerInfo(ByVal containerID As String) As DataTable
End Interface
